from qiniu import Auth, put_data


def upload(data):
    access_key = '7SnFeyBdsukxWd3sPavB3graQa65RaSz0WORx-Ae'
    secret_key = 'kiQaVbuC_oqID851tOFZ3S6hdsYyxW_Xi2Nronua'
    q = Auth(access_key,secret_key)
    bucket_name = 'wjjjlove'
    token  = q.upload_token(bucket_name)
    ret, info  = put_data(token,None,data)
    return ret,info